package com.test.group6.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.test.group6.domain.WorkesInformation;

/**
 *@author jang_rdong 
 *@version 1.1
 * 
 */
@Mapper
public interface WorkesReviseMapper {
	/**
	 *@param  workesInformation 企业高管信息
	 *@return {@link Integer}
	 * 
	 */
	@Update("update workes_information" + 
			"set name=#{workes.name}," + 
			"job=#{workes.job}," + 
			"sex=#{workes.sex}," + 
			"birth=#{workes.birth}," + 
			"education=#{workes.education}," + 
			"enterprise_id=#{workes.enterpriseId}" + 
			"where id=#{workes.id}")
	public int reviseWorkes(@Param("workesInformation")WorkesInformation workesInformation);

}
